package com.bdyc.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.bdyc.controller.custom.ManagerInfoPo;
import com.bdyc.po.ManagerInfo;
import com.bdyc.po.ManagerInfoExample;

public interface ManagerInfoMapper {
    int countByExample(ManagerInfoExample example);

    int deleteByExample(ManagerInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ManagerInfo record);

    int insertSelective(ManagerInfo record);

    List<ManagerInfo> selectByExample(ManagerInfoExample example);

    ManagerInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ManagerInfo record, @Param("example") ManagerInfoExample example);

    int updateByExample(@Param("record") ManagerInfo record, @Param("example") ManagerInfoExample example);

    int updateByPrimaryKeySelective(ManagerInfo record);

    int updateByPrimaryKey(ManagerInfo record);
    //添加manager方法
	void addManagerInfo(ManagerInfo managerInfo);
	//查询用户唯一性
	Integer selectName(@Param("name") String name);
	//manager登录方法
	ManagerInfoPo login(@Param("map")  Map<String,Object> map);
	/**查询managerInfoList总记录数方法*/
	Integer findManagerInfoListCount(@Param("map")  Map<String, Object> sendMap);
	/**查询managerInfoList方法*/
	List<ManagerInfoPo> findManagerInfoList(@Param("map")  Map<String, Object> sendMap);

}